package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地址对象 hire_region
 * 
 * @author ruoyi
 * @date 2024-04-26
 */
public class HireRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址ID */
    @Excel(name = "地址ID")
    private Long regionId;

    /** 上级地区 */
    @Excel(name = "上级地区")
    private Long parentId;

    /** 地址名 */
    @Excel(name = "地址名")
    private String regionName;

    /** 邮编 */
    @Excel(name = "邮编")
    private String zipCode;

    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setZipCode(String zipCode) 
    {
        this.zipCode = zipCode;
    }

    public String getZipCode() 
    {
        return zipCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("parentId", getParentId())
            .append("regionName", getRegionName())
            .append("zipCode", getZipCode())
            .toString();
    }
}
